package com.study.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.study.mybatisplus.base.BaseEntity;
import java.sql.Blob;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author yuanZhi
 * @since 2020-05-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("oauth_client_token")
@ApiModel(value="ClientToken对象", description="")
public class ClientToken extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "加密的access_token值")
    private String tokenId;

    @ApiModelProperty(value = "OAuth2AccessToken.java对象序列化后的二进制数据")
    private Blob token;

    @ApiModelProperty(value = "加密过的username,client_id,scope")
    private String authenticationId;

    @ApiModelProperty(value = "登录的用户名")
    private String userName;

    @ApiModelProperty(value = "客户端ID")
    private String clientId;


}
